package com.tech.config;

import com.tech.bean.Person;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Description:
 * @Author: zl
 * @Date: 2019/7/19 16:30
 */
public class MainTest {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MainConfig.class);
        Person person  = (Person) context.getBean("person");
        System.out.println(person.toString());
    }
}
